package com.sc.nft.dao;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sc.nft.entity.SignInCollection;
import com.sc.nft.entity.dto.CorrelationCollectionDTO;
import com.sc.nft.mapper.SignInCollectionMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Repository;

import java.util.List;


@Slf4j
@Repository
public class SignInCollectionDao extends ServiceImpl<SignInCollectionMapper, SignInCollection> {

    /**
     * 根据活动Id获取关联藏品内容
     * @param activityBasicsId
     * @return
     */
    public List<CorrelationCollectionDTO> getByActivityBasicsId(Long activityBasicsId) {
        return baseMapper.getByActivityBasicsId(activityBasicsId);
    }
}
